package com.example.demo.controller;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;



    @RestController
    @RequestMapping("/user")
    public class UserController {
        @RequestMapping(value = "/login", method = RequestMethod.POST)
        public String login(@RequestBody String userStr) {
            System.out.println(userStr);
            return "SUCCESS";

        }
    }

